<?php
	class Zone_question_deplacement
	{
	
		
		public function afficher_question_reponse($nom_table){
		}
		public function afficher_deplacement($nom_table,$nom_login)
		{
			echo"
			<div class='deplacements'>
				 <div id='message'></div>
				<div class='depl'>
					<table>
					<tr>
						<td class='boutons'>
							
							<input type='button' id='lancer_de' onClick=\"LancerDe();\" value='Lancer le De!' style='display:none' class='bouton_ng'/>
							
							
							<input type='button' class='direction bouton_ng' id='gauche' onClick=\"Deplacer('gauche');\" value='Sens Horaire' style='display:none' />
							<input type='button' class='direction bouton_ng' id='droite' onClick=\"Deplacer('droite');\" value='Sens Anti Horaire' style='display:none' class='bouton_ng'/>
							
						
							
							
						</td>
						<td class='boutons'>
							
							<input type='button' id='demarrer' onClick=\"DemarrerPartie();\" value='Lancer la partie!' style='display:none' class='bouton_ng'/>
							<input type='button' id='pause' onClick=\"Pause();\" value='Mettre la partie en pause' style='display:none' class='bouton_ng'/>
							<input type='button' id='unpause' onClick=\"UnPause();\" value='Reprendre la partie' style='display:none' class='bouton_ng'/>
							<input type='button' id='askpause' onClick=\"AskPause();\" value='Demander une pause' style='display:none' class='bouton_ng'/>
							<input type='button' id='standup' onClick=\"StandUp();\" value='Se lever' style='display:none' class='bouton_ng'/>
							<input type='button' id='close' onClick=\"End(); window.setTimeout('window.close()',1000);\" value='Fermer la table' style='display:none' class='bouton_ng'/>
					
							
						</td>
						<td>
							<input type='button' id='standup' onClick=\"StandUp();\" value='Se lever' style='display:none' class='bouton_ng'/>
							<input type='button' id='sitdown' onClick=\"SitDown();\" value=\"S'assoir\" style='display:none' class='bouton_ng'/>
							<input type='button' id='leave' onClick=\"Leave(); window.setTimeout('window.close()',1000);\" value='Quitter la table' style='display:none' class='bouton_ng'/>	
							<input type='button' id='end' onClick=\"End(); window.setTimeout('window.close()',1000);\" value='Fermer la table' style='display:none' class='bouton_ng'/>
						</td>
					</tr>
					
					</table>
				</div>
				<div id='depl2'>$nom_login Bienvenue sur la table $nom_table</div>
			</div>
			";
		}
		
		public function afficher($nom_table,$nom_login)
		{
		
			$this->afficher_deplacement($nom_table,$nom_login);
			$this->afficher_question_reponse($nom_table);
		}
	}
?>